x = 1


def change(a):
    global x
    x += 1
    print(x)


change(x)  # 2
# 设x为全局变量,用gloval在局部中修改并打印x =+ 1的值,在外面调用函数change形参X
